package cn.edu.ujn.lab3.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.ujn.lab3.dao.IUserDao;
import cn.edu.ujn.lab3.dao.User;


@Service("userService")
@Transactional
public class UserServiceImpl implements IUserService {

	@Autowired
	private IUserDao userDao;
	
	@Override
	public User findUser(String userCode, String userPassword) {
		// TODO Auto-generated method stub
		User user = userDao.findUser(userCode, userPassword);
		return user;
	}

}
